//
//  ShadingImage.h
//  CustomizedActionSheet
//
//  Created by 21CN Vgo on 11-3-24.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum tagShadingDirection {
	ShadingDirection_Horizon = 0,
	ShadingDirection_Vertical = 1,
	ShadingDirection_VerticalTwoPart = 2
}ShadingDirection;

@interface ShadingImage : NSObject {
	float _redStart;
	float _greenStart;
	float _blueStart;
	float _alphaStart;
	
	float _redEnd;
	float _greenEnd;
	float _blueEnd;
	float _alphaEnd;
	
	float _redStart2nd;
	float _greenStart2nd;
	float _blueStart2nd;
	float _alphaStart2nd;
	
	float _redEnd2nd;
	float _greenEnd2nd;
	float _blueEnd2nd;
	float _alphaEnd2nd;
}

@property (nonatomic, assign) float redStart;
@property (nonatomic, assign) float greenStart;
@property (nonatomic, assign) float blueStart;
@property (nonatomic, assign) float alphaStart;

@property (nonatomic, assign) float redEnd;
@property (nonatomic, assign) float greenEnd;
@property (nonatomic, assign) float blueEnd;
@property (nonatomic, assign) float alphaEnd;

@property (nonatomic, assign) float redStart2nd;
@property (nonatomic, assign) float greenStart2nd;
@property (nonatomic, assign) float blueStart2nd;
@property (nonatomic, assign) float alphaStart2nd;

@property (nonatomic, assign) float redEnd2nd;
@property (nonatomic, assign) float greenEnd2nd;
@property (nonatomic, assign) float blueEnd2nd;
@property (nonatomic, assign) float alphaEnd2nd;

+(UIImage *)AverageShadingImageWithStartColor:(UIColor *)clrStart endColor:(UIColor *)endColor size:(CGSize)size;
+(UIImage *)TwoPartAverageShadingImageWithStartColor:(UIColor *)clrStart endColor:(UIColor *)clrEnd startColor2nd:(UIColor *)clrStart2nd endColor2nd:(UIColor *)clrEnd2nd size:(CGSize)size;


@end